#if 1
#include "stdio.h"

int main(){
	char c,c1,c2;
	(c1 = getchar())>(c2 = getchar())?(c = c1):(c = c2);
	printf("%c\n",c);
	return 0;
}
#endif
